
module.exports = function(is_super){
  let config = {
    navData: [
      {
        key: '1',
        type: 1,
        icon: 'pie-chart',
        href: '/',
        text: '订单管理',
        child: [],
        header: false,
        display: true,
        reg: '^\/$'
      },
      {
        key: '3',
        type: 2,
        icon: 'barcode',
        href: '/supplier',
        text: '供应商管理',
        child: [
          {
            key: '3-1',
            type: 3,
            text: '合同管理',
            href: '/supplier/contract',
            child: []
          },
          {
            key: '3-2',
            type: 3,
            text: '费用管理',
            href: '/supplier/cost',
            child: []
          },
        ],
        header: true,
        display: true,
        reg: '^\/supplier\/?$'
      }
    ]
  };
  //如果是 管理者
  if(is_super === 1){
    config.navData.push({
      key: '2',
      type: 1,
      icon: 'user',
      href: '/usermanager',
      text: '用户列表',
      child: [],
      header: true,
      display: true,
      reg: '^\/usermanager\/?$'
    });
  }
  return config
};
